import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

Vue.config.productionTip = false;


// 配置全局样式
import '@/assets/css/global.css'
import '@/assets/css/reset.css'


// 引入初始化样式
import "../static/css/reset.css";
// 全局导入字体图标
import "../static/css/iconfont.css";
import "../static/css/iconfont.eot";
// 配置全局自定义设置
import settings from '@/assets/js/settings'
Vue.prototype.$settings = settings;
// 在所有需要与后台交互的组件中：this.$settings.base_url + '再拼接具体后台路由'

import axios from 'axios'
Vue.prototype.$axios = axios;

import cookies from 'vue-cookies'
Vue.prototype.$cookies = cookies;

//导入防水墙验证码的核心js文件
import '@/assets/js/TCaptcha';

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);

import 'bootstrap'
import 'bootstrap/dist/css/bootstrap.min.css'

import * as filters from './assets/js/filter'

Object.keys(filters).forEach(key => {
  Vue.filter(key, filters[key])
});


// 引入插件
import VueSweetalert2 from './plugins/vue-sweetalert2'
// 使用插件
Vue.use(VueSweetalert2);

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
